Item locks prevent an item from being updated by more than one process at the same time. This maintains the integrity of the database while allowing multiple users access to other items in the same group.
Proc allows you to take multiple locks on the same item (this will normally occur if the item is processed by a number of different routines, each of which locks the item) – each of these locks must be separately released.
The number maximum number of item locks that can be held on the database is user-defined.
In a Proc, an item lock is set by executing the F-UREAD command.
An item lock can be set on a nonexistent item. When creating a new item, the item can be locked before it is written to disk. The lock can also be cleared if a write operation is not carried out.
Item locks are cleared by one of the following:
Note: If an item lock is released during a transaction, release is deferred until the transaction is completed or aborted.